package guoanmaker.operator.business.service;

import guoanmaker.operator.business.model.OperatorHeadline;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author huZhaoyu 
 * @ClassName: OperatorHeadlineServiceInterface 
 * @Description: OperatorHeadlineServiceInterface
 * @date 2017/6/29
 */
public interface OperatorHeadlineServiceInterface {

    /** 
    * @Title: saveHeadline
    * @Description: 新增/修改 创客头条
    * @param：OperatorRoundPhoto   
    * @return OperatorHeadline    
    * @throws 
    */
    OperatorHeadline saveHeadline(OperatorHeadline operatorHeadline);

    /** 
    * @Title: getAllHeadline
    * @Description: 查询所有创客头条
    * @param：void  
    * @return List<OperatorHeadline>   
    * @throws 
    */
    List<OperatorHeadline> getAllHeadline(String cityId);

    /** 
    * @Title: getAllHeadlineByPage
    * @Description: 查询全部创客头条并分页 
     * @param：Integer page 页码  
     * @param：Integer size 条数 
    * @return Page<OperatorHeadline>   
    * @throws 
    */
    Page<OperatorHeadline> getAllHeadlineByPage(Integer page, Integer size);

    /** 
     * @Title: getHeadlineByPageOrderByWeight
     * @Description: 按权重排序查询创客头条并分页 
     * @param：Integer page 页码  
     * @param：Integer size 条数 
     * @return Page<OperatorHeadline>   
     * @throws 
     */
    Page<OperatorHeadline> getHeadlineByPageOrderByWeight(Integer page, Integer size);


    /** 
    * @Title: deleteHeadlineById
    * @Description: 根据Id删除创客头条 
    * @param： String id   
    * @return void   
    * @throws 
    */
    void deleteHeadlineById(String id);

    /** 
    * @Title: getHeadlineById 
    * @Description: 根据Id查询创客头条
    * @param： String id
    * @return OperatorHeadline    
    * @throws 
    */
    OperatorHeadline getHeadlineById(String id);

    /** 
     * @Title: countAllById 
     * @Description: 根据Id查询创客头条
     * @param： String id
     * @return Integer    
     * @throws 
     */
    Integer countAllById();

}
